{if $oCoupons|count > 0}
    <div class="coupon_list">
    	<div class="titleBox">
			<div class="title navTitleFont">
				Discounts & Coupons
			</div>
		</div>
	
		<div class="lists">
			<!-- google_ad_section_start -->
		    {foreach item=oCoupon from=$oCoupons name=plist}
				{if $oCoupon->getTrackingURL() != ''}
					{assign var="URL" value="{$oCoupon->getTrackingURL()}"}
				{else}
					{assign var="URL" value="{$oCoupon->getMerchant()->getDisplayURL()}"}
				{/if}
			
				<div class="plist">
					<div class="pTitleBox">
						<h3 class="title">
							<A title="{$oCoupon->getName()}" href="{$HOME_URL}/coupons/{$oCoupon->getId()}" rel="nofollow" target="_blank">
								<!-- google_ad_section_start -->
								{$oCoupon->getName()|truncate:240:"..."}<img src="{$HOME_URL}/images/button/trim.png" width="1" height="1" />						
								<!-- google_ad_section_end -->
							</A>							
						</h3>
					</div>
					<div class="contentBox">
						{if $oCoupon->getCreativeType() == 1}
							<div class="img">
								<a title="{$oCoupon->getName()}" id="thumb_{$oCoupon->getId()}" href="{$oCoupon->getCouponImage()->getImpressionTrackingUrl()}" class="highslide" onclick="return hs.expand(this)" rel="nofollow" target="_blank">
									<IMG border="0" alt="{$oCoupon->getName()}" src="{$HOME_URL}/images/url/140/80/{$oCoupon->getCouponImage()->getImpressionTrackingUrl()|base64_encode}" border="0" width="140" height="80"  />
								</a>
								<div class="highslide-caption">
								</div>
							</div>							
						{/if}
					
						<div class="summary">	
							{if $oCoupon->getDisplayCouponType() != ''}
			                    <div class="attributes">
			                   		<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Promo Type:</div><div class="greenLinkColor font12">{$oCoupon->getDisplayCouponType()}</div>                 		
			                    </div>
		                    {/if}
		                	
		                	{if $oCoupon->getStartDate() != ''}
								<div class="attributes">
									<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Start Date:</div><div class="greenLinkColor font12">{$oCoupon->getStartDate()|date_format}</div> 
								</div>
							{/if}
							
							{if $oCoupon->getEndDate() == '' or $oCoupon->getEndDate() == '0000-00-00' or $oCoupon->getEndDate() == '3333-03-03'}
								<div class="attributes">
									<div class="attributePrefix font11">●</div><div class="attributeTitle font12">End Date:</div><div class="greenLinkColor font12">limited time</div> 
								</div>
							{else}
								<div class="attributes">
									<div class="attributePrefix font11">●</div><div class="attributeTitle font12">End Date:</div><div class="greenLinkColor font12">{$oCoupon->getEndDate()|date_format}</div> 
								</div>
							{/if}
							   
							{if $oCoupon->getCategory()->getName() != ''}
								<div class="category">
									<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Category:</div> <a href="javascript:void(0);" onclick="requestPage('/categories/{$oCoupon->getCategory()->getFilteredName()}-discount-coupons', {$oCoupon->getCategory()->getId()}, 1);" target="_blank">{$oCoupon->getCategory()->getName()}</a>
								</div>						
							{/if}
							
							{if $oCoupon->getCode() != ''}
								<div class="couponCode">
									<div class="attributePrefix font11">●</div><div class="attributeTitle font12">Coupon Code: </div><span class="code">{$oCoupon->getCode()}</span>
								</div>
							{/if}
							
							{if $oCoupon->getImpressionpixel() != ''}
								<div>
									<IMG src="{$oCoupon->getImpressionpixel()}" width="1" height="1">
								</div>
							{/if}					
										
						</div>
					</div>			
				</div>
			{/foreach}<!-- google_ad_section_end -->
		</div>
	
		{if $displayAd != 'none'}
		<div class="ad_box_740">
			<div class="ad_740">
				<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
				<!-- mer coupon list bottom -->
				<ins class="adsbygoogle"
				     style="display:inline-block;width:728px;height:90px"
				     data-ad-client="ca-pub-3974852460908538"
				     data-ad-slot="0889875137"></ins>
				<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>	
			</div>
		</div>
		{/if}
		
		<div class="empty"></div>
		<div class="clear"></div>
		
	    <div class="pagination">
			{if $pageCount == 0}
				<span class="notData">Data not found...</span>
			{else}
				{if $page > 1}
					<a href="javascript:void(0);" title="go to page {$prePage}" onclick="requestPage('', '{$id}', {$prePage}, '');"><< previous </a>
					
				{else}
					<span class="disabled"><< previous </span>
				{/if}
				
				{foreach item=data from=$pageList}
					{if $page == $data}
						<span class="current">{$data}</span>
					{else}
						<a href="javascript:void(0);" title="go to page {$data}" onclick="requestPage('', '{$id}', {$data}, '');">{$data}</a>
					
					{/if}
				{/foreach}
				
				{if $page < $pageCount}
					<a href="javascript:void(0);" title="go to page {$nextPage}" onclick="requestPage('', '{$id}', {$nextPage}, '');">next >></a>
				{else}
					<span class="disabled">>></span>
				{/if}
			{/if}
		</div>
		
		<div class="empty"></div>
		<div class="clear"></div>
	</div>

{/if}
